home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr25
/
byexampl.zip
/
FIGURE4.C
< prev
next >
Wrap
Text File
|
1993-04-14
|
420b
|
11 lines
/* This function filters out either Gas-Powered or Manual vehicles
* depending on the given return values in FILTERSTRUCT.
* Using the bGasPowered field of VEHICLERECORD to distinguish. */
BOOL EXPENTRY pfnFilter(PRECORDCORE preccObj, PVOID pStorage)
{
if (((PVEHICLERECORD)preccObj)->bGasPowered)
return ((PFILTERSTRUCT)pStorage)->RetVal1;
else
return ((PFILTERSTRUCT)pStorage)->RetVal2;
}